package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.atguigu.ssyx.model.acl.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-07-12 9:08 星期三
 * description:
 */
public interface RolePermissionService extends IService<RolePermission> {
    /**
     * 根据roleId查询菜单
     * @param roleId
     */
    List<Permission> toAssign(Long roleId);

    /**
     * 分配权限
     * @param roleId
     * @param permissionIds
     */
    void doAssign(Long roleId, List<Long> permissionIds);
}
